package com.mutouren.modules.datapush.config;

public enum ConfigUpdateType {
	All((byte)0),
	ConcurrentStrategy((byte)1),
	RepeatStrategy((byte)2);
	
	public final byte value;

	private ConfigUpdateType(byte value) {
		this.value = value;		
	}
	
	public static ConfigUpdateType toConfigUpdateType(byte value) {
		ConfigUpdateType result = null;
		
		switch(value) {
		case 0: result = All; break;
		case 1: result = ConcurrentStrategy; break;
		case 2: result = RepeatStrategy; break;	
		}
		
		return result;
	}
	
	public static void main(String[] args) {
		System.out.println(toConfigUpdateType((byte)2));
	}
}
